import random
import string


def random_string(length=11, choices=string.ascii_letters + string.digits):
    """生成指定长度的字符串
    """
    return ''.join(random.choice(choices) for _ in range(length))
